package com.homework.Demo6_14.Work1.h2;

public class B implements InterfaceA{
    @Override
    public int method(int n) {
        if(n==1){
            return 1;
        }else
        return method(n-1)*n;
    }
}
